export const indexData = {
  columns: [
    { width: 80, label: 'ID编号', prop: 'company_id' },
    { width: 260, label: '供应商名称', prop: 'name', showTooltip: true },
    { label: '地址', prop: 'address', showTooltip: true },
    { label: '联系人', prop: 'contacts' },
    { label: '手机号', prop: 'mobile' },
    { label: '合同编号', prop: 'contract_no' },
    { label: '申请时间', prop: 'apply_at' },
    { label: '状态', prop: 'status', slot: true },
  ],
  formList: [
    { label: '供应商名称', placeholder: '供应商名称', value: 'name', type: 'input' },
    { label: '申请日期', placeholder: '请选择申请日期', value: 'apply_at', type: 'date' },
    { label: '联系人', placeholder: '联系人', value: 'contacts', type: 'input' },
  ],
  formValue: {
    name: '',
    apply_at: '',
    contacts: '',
  },
  tabsList: [
    { label: '供应商总数', num: 0, name: 'all', key: 'all_total' },
    { label: '入驻审核数', num: 0, name: '0', key: 'audit_total' },
    { label: '审核通过数', num: 0, name: '1', key: 'pass_total' },
    { label: '审核驳回数', num: 0, name: '2', key: 'refuse_total' },
  ]
}

export const detailData = {
  infoList: [
    { title: '用户资料', list: [
      { label: '机构名称', value: '', key: 'company_name', span: 6 },
      { label: '公司地址', value: '', key: 'company_address', span: 6 },
      { label: '联系人', value: '', key: 'real_name', span: 6 },
      { label: '手机号', value: '', key: 'mobile', span: 6 },
      // { label: '经营品类', value: '', key: '', span: 6 },
      { label: '注册时间', value: '', key: 'register_time', span: 6 },
      { label: '申请人', value: '', key: 'apply_name', span: 6 },
      { label: '申请日期', value: '', key: 'apply_time', span: 6 },
      // { label: '用户状态', value: '', key: '', span: 6 },
      { label: '审核意见', value: '', key: 'audit_remark', span: 6 },
      // { label: '备注', value: '', key: '', span: 6 },
    ] },
    { title: '管理员信息', list: [
      { label: '姓名', value: '', key: 'real_name', span: 6 },
      { label: '身份证号码', value: '', key: 'id_card_no', span: 6 },
      { label: '证件有效期', value: '', key: 'id_card_start_date', key2: 'id_card_end_date', span: 6 },
      { label: '身份证照片', value: '', key: '', span: 12, imageList: ['id_card_front', 'id_card_back'] },
    ] },
    { title: '法人信息', list: [
      { label: '姓名', value: '', key: 'corporation_real_name', span: 6 },
      { label: '身份证号码', value: '', key: 'corporation_id_card_no', span: 6 },
      { label: '证件有效期', value: '', key: 'corporation_id_card_start_date', key2:'corporation_id_card_end_date', span: 6 },
      { label: '身份证照片', value: '', key: '', span: 12, imageList: ['corporation_id_card_front', 'corporation_id_card_back'] },
    ] },
    { title: '食品经营许可证', list: [
      { label: '证件编号', value: '', key: 'license_no', span: 6 },
      { label: '社会统一信用代码', value: '', key: 'license_code', span: 6 },
      { label: '法定代表人', value: '', key: 'license_corporation', span: 6 },
      { label: '证件有效期', value: '', key: 'license_date', span: 6 },
      { label: '证件照', value: '', key: '', span: 24, imageList: ['license'] },
    ] },
    { title: '健康证', key: 'health_certificate', list: [
      { label: '证件编号', value: '', key: 'no', span: 6 },
      { label: '姓名', value: '', key: 'real_name', span: 6 },
      { label: '证件有效期', value: '', key: 'valid_date', span: 6 },
      { label: '证件照', value: '', key: '', span: 24, imageList: ['photo'] },
    ] },
    { title: '中标通知书/合同', list: [
      { label: '中标/合同编号', value: '', key: 'contract_no', span: 6 },
      { label: '中标主体', value: '', key: 'school_name', span: 6 },
      { label: '中标日期', value: '', key: 'contract_date', span: 6 },
      { label: '证件照', value: '', key: '', span: 24, imageList: ['contract'] },
    ] }
  ]
}

export const joinData = {
  columns: [
    { width: 80, label: 'ID编号', prop: 'id' },
    { width: 260, label: '供应商名称', prop: 'company_name', showTooltip: true },
    { width: 100, label: '状态', prop: 'audit_status', slot: true },
    { width: 220, label: '地址', prop: 'company_address', showTooltip: true },
    { width: 120, label: '联系人', prop: 'real_name' },
    { width: 120, label: '手机号', prop: 'mobile' },
    { label: '申请时间', prop: 'created_at' },
    { label: '合同编号', prop: 'contract_no' },
  ],
  formList: [
    { label: '供应商名称', placeholder: '供应商名称', value: 'company_name', type: 'input' },
    { label: '申请日期', placeholder: '请选择申请日期', value: 'created_at', type: 'date' },
    { label: '联系人', placeholder: '联系人', value: 'contacts', type: 'input' },
  ],
  formValue: {
    company_name: '',
    created_at: '',
    contacts: '',
  },
  tabsList: [
    { label: '供应商总数', num: 0, name: 'all', key: 'all_total' },
    { label: '入驻审核数', num: 0, name: '0', key: 'audit_total' },
    { label: '审核通过数', num: 0, name: '1', key: 'pass_total' },
    { label: '审核驳回数', num: 0, name: '2', key: 'refuse_total' },
  ]
}